#include "cvtabitem.h"

CVTabItem::CVTabItem(QWidget *parent) :
    QWidget(parent)
{
    refresh = new ClickableLabel();
    refresh->setPixmap(QPixmap::fromImage(QImage(":/images/refresh")));
    refresh->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    topLayout = new QHBoxLayout();
    topLayout->addStretch();
    topLayout->addWidget(refresh);

    cvList = new CVList();

    mainLayout = new QVBoxLayout();
    mainLayout->addLayout(topLayout);
    mainLayout->addWidget(cvList);

    setLayout(mainLayout);
}

CVList *CVTabItem::getList()
{
    return cvList;
}

void CVTabItem::load()
{
    // do nothing
}
